<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //定义常量 
        const SCHOOL = '重庆对外经贸学院';
        
        //1.一定要赋予初始值
        //const A
        //2.一般常量使用大写(潜规则，小写也行)
        // const a = 100;
        //3.常量的值不能修改
        // const SCHOOL = '重庆对外';

        //4.跟变量let一样也是块级作用域
        // {
        //     const PLAY = 'UZI';
        // }
        // console.log(PLAY);
        
        //5.对于数组和对象的修改，不算做对常量的修改，不会报错
        const GAME = ['jiejie', 'MXLG', 'Ming', 'LetMe'];
        GAME.push('Meiko');
        console.log(GAME);
    </script>

</body>

</html>